import { cookies } from 'next/headers'

export default function useToken() {
  const cookieStore = cookies()
  const token = cookieStore.get('token')
  return [token]
}
